package com.lhd.creational.factory.simple;

/**
 * @Author: liuhd
 * @Date: 2024/10/20 11:13
 * @Description:
 */
public class CoffeeStore {
    public Coffee getCoffee(String name){
        SimpleFactory factory = new SimpleFactory();
        Coffee coffee = factory.createCoffee(name);
        coffee.addSugar();
        coffee.addMilk();
        return coffee;
    }
}
